package com.huanke.iot.base.dao.wb;

import com.huanke.iot.base.dao.BaseMapper;
import com.huanke.iot.base.dto.wb.MaintenanceManageWbUserVo;
import com.huanke.iot.base.dto.wb.MaintenanceWbUserVo;
import com.huanke.iot.base.po.wb.MaintenanceUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Repository
public interface MaintenanceUserMapper extends BaseMapper<MaintenanceUser> {
    List<MaintenanceUser> obtainWbUsers();

    MaintenanceUser selectByCustomerUserId(@Param("customerUserId") Integer customerUserId);

    MaintenanceUser getUserMsg(@Param("customerUserId") Integer customerUserId);

    void deleteWbUser(@Param("userId") Integer userId);

    MaintenanceUser selectManageByCustomerUserId(@Param("customerUserId") Integer customerUserId);

    List<MaintenanceManageWbUserVo> selectWorkedWbUserList();

    void updateOrderNumAndReceiveStatus(@Param("id") Integer id, @Param("orderNum") Integer orderNum);

    MaintenanceUser selectWbByCustomerId(@Param("customerUserId") Integer customerUserId);

    List<MaintenanceManageWbUserVo> selectWbUserList(@Param("param")MaintenanceUser user, @Param("limit") Integer limit, @Param("offset") Integer offset);

    MaintenanceWbUserVo login(@Param("name")String name, @Param("password")String password, @Param("customerId")Integer customerId);

    MaintenanceManageWbUserVo selectWbUserDetailById(@Param("userId") Integer wbUserId);

    MaintenanceUser getWbUserMsg(@Param("customerUserId") Integer customerUserId);

    List<MaintenanceUser> selectManageUserList(@Param("customerId") Integer customerId);
}
